#ifndef HYPNOTOAD_H
#define HYPNOTOAD_H

#include <QtGui>

#ifdef Q_WS_X11
 #include <phonon/mediaobject.h>
 #include <phonon/audiooutput.h>
#endif

#ifdef Q_WS_WIN
 #include <Phonon/MediaObject>
 #include <Phonon/AudioOutput>
#endif


class hypnotoad : public QGraphicsView
{
    Q_OBJECT
    public:
        hypnotoad(QGraphicsView *parent = 0);
       ~hypnotoad();
    public slots:
        void soita();
        void pyorita();
        void sulje();
    private:
        Phonon::MediaObject *media;
        Phonon::AudioOutput *aani;
        QGraphicsScene *scene;
        QGraphicsPixmapItem *hypno;
        QTimer *ajastin;
};

#endif // HYPNOTOAD_H
